import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('user', () => {
    const users = ref(localStorage.getItem('users') || "")


    const setUsers = (name) => {
        users.value = name

    }

    return { users, setUsers }
})
